package com.crm.model.mdao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.crm.model.mpojo.Role;
@Mapper
public interface RoleMapper {
    int deleteByPrimaryKey(Integer roleId);

    int insert(Role record);

    int insertSelective(Role record);

    Role selectByPrimaryKey(Integer roleId);

    int updateByPrimaryKeySelective(Role record);

    int updateByPrimaryKey(Role record);
    
    /**
     * 查询所有角色前台表单数据
     * @param search
     * @return
     */
    List<Map<String,String>> selectByAll(@Param("statusid") Integer statusid ,@Param("search") String search);
    
    /**
     * 查询所有角色Map<lable,value>,用于前台界面筛选。
     * @return
     */
    List<Map<String,String>> selectAllRoleView();
}